package com.nyj.io;

import java.io.InputStream;

/**
 * @author niuyj
 * @date 2020/4/29 22:48
 * @description
 */
public class Resources {
    //将配置文件中的内容解析为字节流，存储在内存中
    public static  InputStream  getResourceAsStream(String path){

        InputStream inputStream = Resources.class.getClassLoader().getResourceAsStream(path);

        return inputStream;
    }
}
